package com.ws.service.impl;

import com.ws.bean.Acl_user;
import com.ws.bean.vo.Acl_userVo;
import com.ws.mapper.Acl_UserMapper;
import com.ws.service.Acl_UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Acl_UserServiceImpl implements Acl_UserService {
    @Autowired
    private Acl_UserMapper aclUserMapper;
    @Override
    public int add(Acl_user aclUser) {
        return aclUserMapper.add(aclUser);
    }

    @Override
    public List<Acl_user> selAcl_user(Acl_userVo acl_userVo) {
        return aclUserMapper.selAcl_user(acl_userVo);
    }

    @Override
    public int delete(Integer userId) {
        return aclUserMapper.delete(userId) ;
    }

    @Override
    public Acl_user selAcl_userOne(Integer userId) {
        return aclUserMapper.selAcl_userOne(userId);
    }

    @Override
    public int update(Acl_user aclUser) {
        return aclUserMapper.update(aclUser);
    }

    @Override
    public Acl_user login(String username) {
        return aclUserMapper.login(username);
    }

    @Override
    public int selectUserBySupplierId(Integer id) {
        return aclUserMapper.selectUserBySupplierId(id);
    }
}
